<?php

$firstName = "";
if(isset($params["firstName"])){
	$firstName = $params["firstName"];
}

$secondName = "";
if(isset($params["secondName"])){
	$secondName = $params["secondName"];
}

$firstId = "";
if(isset($params["firstId"])){
	$firstId = $params["firstId"];
}

$secondId = "";
if(isset($params["secondId"])){
	$secondId = $params["secondId"];
}

$firstText = "";
if(isset($params["firstText"])){
	$firstText = $params["firstText"];
}

$secondText = "";
if(isset($params["secondText"])){
	$secondText = $params["secondText"];
}

$firstOnclick = "";
if(isset($params["firstOnclick"])){
	$firstOnclick = $params["firstOnclick"];
}

$secondOnclick = "";
if(isset($params["secondOnclick"])){
	$secondOnclick = $params["secondOnclick"];
}

$class = "";
if(isset($params["class"])){
	$class = $params["class"];
}

?>
 
<?php
echo "<div class='$class'>";
echo "<input type='checkbox' "; 

if ($firstName != "") echo " name='" . $firstName ."' ";
if ($firstId != "") echo " id='" . $firstId ."' ";
echo " checked";
if ($firstOnclick != "") echo " onclick='$firstOnclick'";
echo " >";
if ($firstText != "") echo $firstText;

echo "</input>";

echo "<input type='checkbox' "; 

if ($secondName != "") echo " name='" . $secondName ."' ";
if ($secondId != "") echo " id='" . $secondId ."' ";
if ($secondOnclick != "") echo " onclick='$secondOnclick'";
echo " >";
if ($secondText != "") echo $secondText;

echo "</input>";
echo "</div>";
?>